DataSource for Entity Framework in WPF
C1.Data Namespace / ClientView<T> Class / ProgressiveLoading Method / ProgressiveLoading<TKey>(Expression<Func<T,TKey>>,Boolean,Int32) Method
The type of the sort key.
A function specifying a sort key.
A boolean value indicating whether sorting must be performed in the ascending order (descending, if false).
The size of the page.

In This Topic
    ProgressiveLoading<TKey>(Expression<Func<T,TKey>>,Boolean,Int32) Method
    In This Topic
    Specifies that the client view loading is performed not in a single trip to the server but in multiple batches, each loading a page of a limited size so the user sees the result and can interact with it before all pages are loaded.
    Syntax
    'Declaration
     
    Public Overloads Function ProgressiveLoading(Of TKey)( _
       ByVal sortKeySelector As Expression(Of Func(Of T,TKey)), _
       ByVal ascending As Boolean, _
       ByVal loadSize As Integer _
    ) As ProgressiveView(Of T)
    public ProgressiveView<T> ProgressiveLoading<TKey>( 
       Expression<Func<T,TKey>> sortKeySelector,
       bool ascending,
       int loadSize
    )

    Parameters

    sortKeySelector
    A function specifying a sort key.
    ascending
    A boolean value indicating whether sorting must be performed in the ascending order (descending, if false).
    loadSize
    The size of the page.

    Type Parameters

    TKey
    The type of the sort key.

    Return Value

    A client view that loads the same entities as the source view but does it progressively.
    Remarks
    Sorting is required, loading entities progressively is impossible without sort.
    See Also